<?php

class Cat_Tags_Date extends Cat_Processor_Monkey_TagBase
{
	function getOutput()
	{		
		$format = trim( $this->getParam( 'args' ) );
		
		if ( $format != '' )
		{
			return date( $format );
		}
		else
		{
			return date( "Y-m-d H:i:s" );
		}
	}
}

?>